import {http} from '@/utils/HttpUtil'

const blogApi = {
  getAllBlogPage: (param) => http.get('/blog/page', param),
  getBlogById: (param) => http.get('/blog', param),
  updateBlogInfo: (param) => http.put('/blog', param),
  uploadImage: (param) => http.post('/image/upload', param),
  deleteImage: (param) => http.delete('/image', param)
}
export {
  blogApi
}
